package com.dubbo;

import com.dubbo.service.IOrderService;

public class MyStub implements IOrderService {

    private final IOrderService orderService;

    // 构造函数传入真正的远程代理对象
    public MyStub(IOrderService orderService) {
        this.orderService = orderService;
    }

    @Override
    public String orderList(String message) {
        System.out.println("做ThreadLocal 存储");
        return orderService.orderList(message);
    }

}
